﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace class1
{//任务 NPC，商贩 NPC，铁匠 NPC，三种 NPC 的种类。
    enum NPCType
    {
        task,
        shop,
        black,
    }
   abstract class NPC
    {
        protected string name;
        protected NPCType npcType;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public NPCType NPCType
        {
            get { return this.npcType; }
            set { this.npcType = value; }
        }

        public NPC() { }
        public NPC(string name,NPCType nPCType)
        {
            this.name = name;
            this.npcType = NPCType;
        }
        public abstract void speck();
      
    }
}
